import ReactDOM from 'react-dom'
import { BrowserRouter } from 'react-router-dom'
import { App } from './App'
import { GlobalContext } from './globalContext'

const RenderContext = () => {
  return <GlobalContext.Provider value={window.context || {}}>
        <App />
     </GlobalContext.Provider>
}

ReactDOM.hydrate(
  <BrowserRouter>
    <RenderContext />
  </BrowserRouter>,
  document.getElementById('root')
)
